package zookeeper.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@RestController
public class ZookeeperCustomer8211Controller {
    @Resource
    private RestTemplate restTemplate;

    @GetMapping("/zookeeper/c1")
    public String c1(){
        return restTemplate.getForObject("http://zookeeper-provider-8201/zookeeper/pro1",String.class) + "-(customer-8211)";
    }
}
